package design.pattern.creational.simple_factory;

public class TVFactory {
    public static TV createTV(String tvName) {
        if ("Haier".equals(tvName)) {
            return new HaierTV();
        }
        if ("Hisense".equals(tvName)) {
            return new HisenseTV();
        }
        if ("LG".equals(tvName)) {
            return new LGTV();
        }
        return null;
    }
}
